package com.zjt.web.api.vo.base;

/**
 * Created by IntelliJ IDEA.
 * User: xueyanbeijing
 * Date: 12-8-16
 * Time: PM6:03
 * <p/>
 * 扫描数据记录
 */
public class RecordVO {
    private long recordId;   //记录id
    private String codeType;  //扫描类型：qrcode:二维码 , barcode：条形码
    private String goodsTitle; //商品标题
    private String goodsDesc; //商品描述
    private String goodsPicUrl;//商品图片URL
    private String goodsBigPicUrl ; //商品图片大图URL

    private int goodsReal;//是否是正品

    // 2被查询过;
    // 1是(数据库中有真假通二维码),
    // 0否（别人模仿真假通二维码检验，但码值不对，规则符合，但产品ID不存在）
    // -1  未实现真假通防伪（条形码）,有可能是条形码，
    // -2 不可识别的二维码

    private int codeValueStatus;//检查状态。
    //0:经查,该商品条码未在中国物品编码中心注册,请在产品包装上找到防伪码。
    //1:经查,该商品条码已在中国物品编码中心注册,请在产品包装上找到防伪码。
    //2:经查,该商品已在中国物品编码中心注册，但商品信息未按规定通报,请在产品包装上找到防伪码。
    //3:经查,该厂商识别代码已于1999年XX月XX日注销，请关于产品生产日期,请在产品包装上找到防伪码。

    private long searchNum; //查询次数
    private String firstSearchTime;//首次查询时间

    private long productId;//[可以为空] productInfo表的id
    private String codeValue;//[可以为空]



    public int getCodeValueStatus() {
        return codeValueStatus;
    }

    public void setCodeValueStatus(int codeValueStatus) {
        this.codeValueStatus = codeValueStatus;
    }

    public String getCodeValue() {
        return codeValue;
    }

    public void setCodeValue(String codeValue) {
        this.codeValue = codeValue;
    }

    public long getProductId() {
        return productId;
    }

    public void setProductId(long productId) {
        this.productId = productId;
    }

    public long getRecordId() {
        return recordId;
    }

    public void setRecordId(long recordId) {
        this.recordId = recordId;
    }

    public String getCodeType() {
        return codeType;
    }

    public void setCodeType(String codeType) {
        this.codeType = codeType;
    }

    public String getGoodsTitle() {
        return goodsTitle;
    }

    public void setGoodsTitle(String goodsTitle) {
        this.goodsTitle = goodsTitle;
    }

    public String getGoodsDesc() {
        return goodsDesc;
    }

    public void setGoodsDesc(String goodsDesc) {
        this.goodsDesc = goodsDesc;
    }

    public String getGoodsPicUrl() {
        return goodsPicUrl;
    }

    public void setGoodsPicUrl(String goodsPicUrl) {
        this.goodsPicUrl = goodsPicUrl;
    }

    public String getGoodsBigPicUrl() {
        return goodsBigPicUrl;
    }

    public void setGoodsBigPicUrl(String goodsBigPicUrl) {
        this.goodsBigPicUrl = goodsBigPicUrl;
    }

    public int getGoodsReal() {
        return goodsReal;
    }

    public void setGoodsReal(int goodsReal) {
        this.goodsReal = goodsReal;
    }

    public long getSearchNum() {
        return searchNum;
    }

    public void setSearchNum(long searchNum) {
        this.searchNum = searchNum;
    }

    public String getFirstSearchTime() {
        return firstSearchTime;
    }

    public void setFirstSearchTime(String firstSearchTime) {
        this.firstSearchTime = firstSearchTime;
    }

    @Override
    public String toString() {
        return "RecordVO{" +
                "recordId=" + recordId +
                ", codeType='" + codeType + '\'' +
                ", goodsTitle='" + goodsTitle + '\'' +
                ", goodsDesc='" + goodsDesc + '\'' +
                ", goodsPicUrl='" + goodsPicUrl + '\'' +
                ", goodsBigPicUrl='" + goodsBigPicUrl + '\'' +
                ", goodsReal=" + goodsReal +
                ", codeValueStatus=" + codeValueStatus +
                ", searchNum=" + searchNum +
                ", firstSearchTime='" + firstSearchTime + '\'' +
                ", productId=" + productId +
                ", codeValue='" + codeValue + '\'' +
                '}';
    }
}
